package com.geek.framework.study.config.microprofile.source;


import com.geek.framework.study.config.microprofile.enums.ConfigSourceEnum;

import java.util.Map;


public class OperationSystemEnvironmentConfigSource extends MapBaseConfigSource {

    public OperationSystemEnvironmentConfigSource() {
        super(ConfigSourceEnum.SYSTEM_CONFIG.getName(), ConfigSourceEnum.SYSTEM_CONFIG.getOrdinal());
    }

    @Override
    protected void prepareConfigData(Map<String, String> configData) {
        configData.putAll(System.getenv());
    }
}
